<div class="pageContent">
    <form method="post"
        action="${rc.getContextPath()}/manage/andonType/saveAndonType"
        class="pageForm required-validate"
        onsubmit="return validateCallback(this,dialogAjaxDone);">
        <div class="pageFormContent" >
            <fieldset>
            	<dl>
            		<dt><@label key="distributionNum.C,colon">配送需求编号：</@label></dt>
            		<dd><input name="distributionNum" size="22" type="text" value="${distribution.distributionNum!''}"  readonly="readonly"/></dd>
            	</dl>
            	<dl>
            		<dt style="width: 120px;"><@label key='materialCode.C,colon'>物料编号：</@label></dt>
            		<dd><input name="materialCode" size="22" type="text" value="${distribution.materialCode!''}"  readonly="readonly"/></dd>
            	</dl>
            	<dl>
            		<dt ><@label key='productOrderNum.C,colon'>生产订单编号：</@label></dt>
            		<dd><input name="productionOrderNum" size="22" type="text" value="${requirement.productionOrderNum!''}"  readonly="readonly"/></dd>
            	</dl>
            	<dl>
            		<dt style="width: 120px;"><@label key='productionControlNum.C,colon'>生产管理号：</@label></dt>
            		<dd><input name="productionControlNum" size="22" type="text" value="${requirement.productionControlNum!''}"  readonly="readonly"/></dd>
            	</dl>
            	<dl>
            		<dt ><@label key="workCenterCode.C,colon">工作中心编号:</@label></dt>
            		<dd><input name="workCenterCode" size="22" type="text" value="${distribution.workCenterCode!''}"  readonly="readonly"/></dd>
            	</dl>
            	<dl>
            		<dt style="width: 120px;"><@label key="workUnitCode.C,colon">作业单元编号</@label></dt>
            		<dd><input name="workUnitCode" size="22" type="text" value="${distribution.workUnitCode!''}"  readonly="readonly"/></dd>
            	</dl>
            	<dl>
            		<dt><@label key="theLine.C,WarehouseCode.C,colon">线边仓库：</@label></dt>
            		<dd><input name="warehouseCode" size="22" type="text" value="${distribution.warehouseCode!''}"  readonly="readonly"/></dd>
            	</dl>
            	<dl>
            		<dt style="width: 120px;"><@label key="theLine.C,storageLocation.C,colon">线边库位：</@label></dt>
            		<dd><input name="locationCode" size="22" type="text" value="${distribution.locationCode!''}"  readonly="readonly"/></dd>
            	</dl>
            	<dl>
            		<dt><@label key="distributionMode.C,colon">配送形式：</@label></dt>
            		<dd><input name="distributionModeCode" size="22" type="text" value="${distribution.distributionModeCode!''}"  readonly="readonly"/></dd>
            	</dl>
            	<dl>
            		<dt style="width: 120px;"><@label key="distributionUser.C,colon">配送人员：</@label></dt>
            		<dd><input name="distributionUser" size="22" type="text" value="${distribution.distributionUser!''}"  readonly="readonly"/></dd>
            	</dl>
            	<dl>
            		<dt><@label key='closeDateTime.C,colon'>需求关闭时间从：</@label></dt>
            		<dd><input name="closeDateTime" size="22" type="text" value="${(distribution.closeDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}"  readonly="readonly"/></dd>
            	</dl>
            	<dl>
            		<dt style="width: 120px;"><@label key="closeUser.C,colon">关闭人：</@label></dt>
            		<dd><input name="closeUser" size="22" type="text" value="${distribution.closeUser!''}"  readonly="readonly"/></dd>
            	</dl>
            	<dl>
            		<dt><@label key="pullStrategyCode.C,colon">拉动策略编号：</@label></dt>
            		<dd><input name="pullStrategyCode" size="22" type="text" value="${distribution.pullStrategyCode!''}"  readonly="readonly"/></dd>
            	</dl>
            	<dl>
            		<dt style="width: 120px;"><@label key="requirementTriggerMode.C,colon">需求触发策略：</@label></dt>
            		<dd><input name="requirementTriggerModeCode" size="22" type="text" value="${distribution.requirementTriggerModeCode!''}"  readonly="readonly"/></dd>
            	</dl>
            	<dl>
            		<dt><@label key="distributionTriggerModeCode.C,colon">配送触发策略：</@label></dt>
            		<dd><input name="distributionTriggerModeCode" size="22" type="text" value="${distribution.distributionTriggerModeCode!''}"  readonly="readonly"/></dd>
            	</dl>
            	
                <dl>
                    <dt style="width: 120px;"><@label key='status.C,colon'>状态：</@label></dt>
                    <dd>
                        <select name="statusECode" disabled="disabled">
		                    <option value="" ><@label key='all.C'>所有</@label></option>
		                    <#if ecodes??>
		                        <#list ecodes as ecode>
		                            <option value="${ecode.eCode!''}" <#if distribution.statusECode?? && distribution.statusECode == ecode.eCode> selected</#if> >${ecode.eCodeText!''}</option>
		                        </#list>
		                    </#if>
		                </select>
                    </dd>
                </dl>
                <dl>
                    <dt><@label key='createDateTime.C,colon'>创建日期：</@label></dt>
                    <dd><input name="createDateTime" size="22" type="text" value="${(distribution.createDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}"  readonly="readonly"/></dd>
                </dl>
                <dl class="defectLookup">
                    <dt style="width: 120px;"><@label key="createUser.C,colon">创建人：</@label></dt>
                    <dd>
                    	<input name="createUser" size="22" type="text" value="${distribution.createUser!''}" readonly="readonly"/>
                    </dd>
                </dl>              
            </fieldset>            
        </div>
        <div class="tabs">
        <div class="tabsHeader">
            <div class="tabsHeaderContent">
                <ul>
                    <li id="component" data-selectedid="processOperation_component" class="exerInputS"><a href="javascript:;" id="select1">
                    <span><@label key='requirement.C'>物料需求</@label></span></a></li>
                </ul>
            </div>
        </div>
        <div class="tabsContent" style="height:180px">
            <div>
            <table class="table border" width="100%" layoutH="410">
            <thead>
                <tr>
                    <th width="20"><@label key="serialNumber.C">序号</@label></th>                    
                    <th width="40"><@label key='requirementNum.C'>需求编号</@label></th>
                    <th width="40"><@label key='materialCode.C'>物料编号</@label></th>
                    <th width="40"><@label key='materialText.C'>物料名称</@label></th>
                    <th width="40"><@label key='materialspec.C'>物料规格</@label></th>                    
                    <th width="40"><@label key='requirementQuantity.C'>需求数量</@label></th>
                    <th width="40"><@label key='distributiveQuantity.C'>已配数量</@label></th>
                    <th width="80"><@label key='createDateTime.C'>创建时间</@label></th>
                </tr>
            </thead>
            <tbody>
            <#if requirements??><#if (requirements?size>0 )>
                <#list requirements as requirement>
                <tr>
                    <td>${requirement_index + 1}</td>
                    <td>${requirement.requirementNum!''}</td>
                    <td>${requirement.materialCode!''}</td>
                    <td>${requirement.materialText!''}</td>
                    <td>${requirement.materialSpec!''}</td>
                    <td>${requirement.requirementQuantity!''}</td>
                    <td>${requirement.actualQuantity!''}</td>
                    <td>${(requirement.createDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                </tr>
            </#list>
            </#if>
            <#else>
            <tr>
                    <td colspan="11" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
            </tr>
            </#if>
            </tbody>
            </table>
            </div>
        </div>

        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                                <button type="button" class="close" onclick="beforeClose();"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>
